package com.agv.core.services.rpt;

import com.agv.core.dao.rpt.IRptDao;
import com.agv.core.exception.AgvException;
import com.agv.core.objectDomain.DataModel;

public class RptServiceImpl implements IRptService {

	private IRptDao rptDao;

	public DataModel getDataModel(String nbReport) throws AgvException {
		try {
			DataModel dataModel = rptDao.getDataModel(nbReport);
			return dataModel;
		} catch (Exception e) {
			throw new AgvException(e);
		}
	}

	public void setRptDao(IRptDao rptDao) {
		this.rptDao = rptDao;
	}

}
